<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>document2html: rtf::HtmlText Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">document2html
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">Documents to HTML converter</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classrtf_1_1_html_text.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a> &#124;
<a href="classrtf_1_1_html_text-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">rtf::HtmlText Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Parts of HTML text before adding to tree.  
 <a href="classrtf_1_1_html_text.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="formatting_8hpp_source.html">formatting.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a2eb20945419bbde045b30a752bd45f64"><td class="memItemLeft" align="right" valign="top"><a id="a2eb20945419bbde045b30a752bd45f64"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>HtmlText</b> (const <a class="el" href="classrtf_1_1_formatting.html">Formatting</a> &amp;format, bool <a class="el" href="classrtf_1_1_html_text.html#a1fca2c1b5d87a03a59b2e8baec875f1a">addStyle</a>)</td></tr>
<tr class="separator:a2eb20945419bbde045b30a752bd45f64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae9fd2e2bf0b5f93bfd6654442b271772"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ae9fd2e2bf0b5f93bfd6654442b271772"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#ae9fd2e2bf0b5f93bfd6654442b271772">add</a> (T str)</td></tr>
<tr class="memdesc:ae9fd2e2bf0b5f93bfd6654442b271772"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add text and insert style tags.  <a href="#ae9fd2e2bf0b5f93bfd6654442b271772">More...</a><br /></td></tr>
<tr class="separator:ae9fd2e2bf0b5f93bfd6654442b271772"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5d6310a739a980269e60c435c3cd2364"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#a5d6310a739a980269e60c435c3cd2364">addSubtree</a> (pugi::xml_node &amp;node) const</td></tr>
<tr class="memdesc:a5d6310a739a980269e60c435c3cd2364"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copy nodes to main tree.  <a href="#a5d6310a739a980269e60c435c3cd2364">More...</a><br /></td></tr>
<tr class="separator:a5d6310a739a980269e60c435c3cd2364"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c36eb3adcd125c80fb4f2c27d0b57c2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#a4c36eb3adcd125c80fb4f2c27d0b57c2">clearText</a> ()</td></tr>
<tr class="memdesc:a4c36eb3adcd125c80fb4f2c27d0b57c2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear text and element stack.  <a href="#a4c36eb3adcd125c80fb4f2c27d0b57c2">More...</a><br /></td></tr>
<tr class="separator:a4c36eb3adcd125c80fb4f2c27d0b57c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80148054a6dc5dbe889b20646e3fa7c8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#a80148054a6dc5dbe889b20646e3fa7c8">close</a> ()</td></tr>
<tr class="memdesc:a80148054a6dc5dbe889b20646e3fa7c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Close element stack.  <a href="#a80148054a6dc5dbe889b20646e3fa7c8">More...</a><br /></td></tr>
<tr class="separator:a80148054a6dc5dbe889b20646e3fa7c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr class="memitem:a1fca2c1b5d87a03a59b2e8baec875f1a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#a1fca2c1b5d87a03a59b2e8baec875f1a">addStyle</a> (pugi::xml_node &amp;node, const std::string &amp;styleName, bool oldStyle, bool newStyle)</td></tr>
<tr class="memdesc:a1fca2c1b5d87a03a59b2e8baec875f1a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add style tags.  <a href="#a1fca2c1b5d87a03a59b2e8baec875f1a">More...</a><br /></td></tr>
<tr class="separator:a1fca2c1b5d87a03a59b2e8baec875f1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:afd2bd7cab79422fbbdf1b0089a4a5a23"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classrtf_1_1_formatting.html">Formatting</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#afd2bd7cab79422fbbdf1b0089a4a5a23">m_format</a></td></tr>
<tr class="separator:afd2bd7cab79422fbbdf1b0089a4a5a23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79aed437e84ea299e0959098996fbd90"><td class="memItemLeft" align="right" valign="top">std::deque&lt; <a class="el" href="classrtf_1_1_formatting.html">Formatting</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#a79aed437e84ea299e0959098996fbd90">m_formatStack</a></td></tr>
<tr class="separator:a79aed437e84ea299e0959098996fbd90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a52e7929dcad54129d7b8d0f4f8089b"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#a2a52e7929dcad54129d7b8d0f4f8089b">m_text</a></td></tr>
<tr class="separator:a2a52e7929dcad54129d7b8d0f4f8089b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8cee38e34358e58157c5d1195a8b680"><td class="memItemLeft" align="right" valign="top">pugi::xml_document&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#ab8cee38e34358e58157c5d1195a8b680">m_tree</a></td></tr>
<tr class="separator:ab8cee38e34358e58157c5d1195a8b680"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a31c44064b963190628b79183cfd0cccc"><td class="memItemLeft" align="right" valign="top">std::vector&lt; pugi::xml_node &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#a31c44064b963190628b79183cfd0cccc">m_nodeList</a></td></tr>
<tr class="separator:a31c44064b963190628b79183cfd0cccc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab763a0857a581861b88ce7b032ee687b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classrtf_1_1_html_text.html#ab763a0857a581861b88ce7b032ee687b">m_addStyle</a></td></tr>
<tr class="separator:ab763a0857a581861b88ce7b032ee687b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Parts of HTML text before adding to tree. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ae9fd2e2bf0b5f93bfd6654442b271772"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae9fd2e2bf0b5f93bfd6654442b271772">&#9670;&nbsp;</a></span>add()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename T &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void rtf::HtmlText::add </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add text and insert style tags. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">T</td><td>Input string type </td></tr>
  </table>
  </dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">str</td><td>Input string </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.0 </dd></dl>

</div>
</div>
<a id="a1fca2c1b5d87a03a59b2e8baec875f1a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1fca2c1b5d87a03a59b2e8baec875f1a">&#9670;&nbsp;</a></span>addStyle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void rtf::HtmlText::addStyle </td>
          <td>(</td>
          <td class="paramtype">pugi::xml_node &amp;&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>styleName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>oldStyle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>newStyle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add style tags. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[out]</td><td class="paramname">node</td><td>HTML-node </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">styleName</td><td>Style tag name </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">oldStyle</td><td>Old style </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">newStyle</td><td>New style </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.0 </dd></dl>

</div>
</div>
<a id="a5d6310a739a980269e60c435c3cd2364"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5d6310a739a980269e60c435c3cd2364">&#9670;&nbsp;</a></span>addSubtree()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rtf::HtmlText::addSubtree </td>
          <td>(</td>
          <td class="paramtype">pugi::xml_node &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copy nodes to main tree. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in,out]</td><td class="paramname">node</td><td>HTML-node </td></tr>
  </table>
  </dd>
</dl>
<dl class="section since"><dt>Since</dt><dd>1.0 </dd></dl>

</div>
</div>
<a id="a4c36eb3adcd125c80fb4f2c27d0b57c2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4c36eb3adcd125c80fb4f2c27d0b57c2">&#9670;&nbsp;</a></span>clearText()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rtf::HtmlText::clearText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear text and element stack. </p>
<dl class="section since"><dt>Since</dt><dd>1.0 </dd></dl>

</div>
</div>
<a id="a80148054a6dc5dbe889b20646e3fa7c8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80148054a6dc5dbe889b20646e3fa7c8">&#9670;&nbsp;</a></span>close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void rtf::HtmlText::close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Close element stack. </p>
<dl class="section since"><dt>Since</dt><dd>1.0 </dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="ab763a0857a581861b88ce7b032ee687b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab763a0857a581861b88ce7b032ee687b">&#9670;&nbsp;</a></span>m_addStyle</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool rtf::HtmlText::m_addStyle</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Should read and add styles to HTML-tree </p>

</div>
</div>
<a id="afd2bd7cab79422fbbdf1b0089a4a5a23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd2bd7cab79422fbbdf1b0089a4a5a23">&#9670;&nbsp;</a></span>m_format</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classrtf_1_1_formatting.html">Formatting</a>&amp; rtf::HtmlText::m_format</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Text current formatting information </p>

</div>
</div>
<a id="a79aed437e84ea299e0959098996fbd90"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79aed437e84ea299e0959098996fbd90">&#9670;&nbsp;</a></span>m_formatStack</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::deque&lt;<a class="el" href="classrtf_1_1_formatting.html">Formatting</a>&gt; rtf::HtmlText::m_formatStack</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p><a class="el" href="classrtf_1_1_formatting.html" title="Text formatting information. ">Formatting</a> stack </p>

</div>
</div>
<a id="a31c44064b963190628b79183cfd0cccc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a31c44064b963190628b79183cfd0cccc">&#9670;&nbsp;</a></span>m_nodeList</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;pugi::xml_node&gt; rtf::HtmlText::m_nodeList</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>HTML-nodes stack </p>

</div>
</div>
<a id="a2a52e7929dcad54129d7b8d0f4f8089b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a52e7929dcad54129d7b8d0f4f8089b">&#9670;&nbsp;</a></span>m_text</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string rtf::HtmlText::m_text</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>HTML text </p>

</div>
</div>
<a id="ab8cee38e34358e58157c5d1195a8b680"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab8cee38e34358e58157c5d1195a8b680">&#9670;&nbsp;</a></span>m_tree</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">pugi::xml_document rtf::HtmlText::m_tree</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>HTML-tree </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/libs/fileext/rtf/<a class="el" href="formatting_8hpp_source.html">formatting.hpp</a></li>
<li>src/libs/fileext/rtf/<a class="el" href="formatting_8cpp.html">formatting.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacertf.html">rtf</a></li><li class="navelem"><a class="el" href="classrtf_1_1_html_text.html">HtmlText</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
